package com.medical.service.impl;

import com.medical.mapper.ApplyForHomeMapper;
import com.medical.pojo.ApplyForHome;
import com.medical.service.ApplyForHomeService;
import com.medical.vo.Rmed;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApplyForHomeServiceImpl implements ApplyForHomeService {

    @Autowired
    private ApplyForHomeMapper applyForHomeMapper;

    @Override
    public List<ApplyForHome> findAll() {
        return applyForHomeMapper.findAll();
    }

    @Override
    public ApplyForHome findById(Integer id) {
        return applyForHomeMapper.findById(id);
    }

    @Override
    public Rmed updateStatus(Integer id) {
        applyForHomeMapper.updateStatus(id);
        return Rmed.suceess();
    }
}
